function [SCic,SIic]=getSCandSI(channelassignment,channelc,CRi,IRi)
SCic=0;SIic=0;
% channelOfi=channelassignment(nodei,channelc);
for i=CRi
  %  if((channelassignment(i,channelc)==1)&&(channelassignment(nodei,channelc)==1))
  if(i~=0)
  if(channelassignment(i,channelc)==1)
        SCic = SCic + 1;
  end
  end
end

for i=IRi
    if(i~=0)
  %  if((channelassignment(i,channelc)==1)&&(channelassignment(nodei,channelc)==1))
  if(channelassignment(i,channelc)==1)
        SIic = SIic + 1;
  end
    end
end